<?php 
/* SVN FILE: $Id$ */
/* Comentario Test cases generated on: 2010-03-24 19:51:05 : 1269460265*/
App::import('Model', 'Comentario');

class ComentarioTestCase extends CakeTestCase {
	var $Comentario = null;
	var $fixtures = array('app.comentario', 'app.texto');

	function startTest() {
		$this->Comentario =& ClassRegistry::init('Comentario');
	}

	function testComentarioInstance() {
		$this->assertTrue(is_a($this->Comentario, 'Comentario'));
	}

	function testComentarioFind() {
		$this->Comentario->recursive = -1;
		$results = $this->Comentario->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Comentario' => array(
			'id'  => 1,
			'texto_id'  => 1,
			'nome'  => 'Lorem ipsum dolor sit amet',
			'email'  => 'Lorem ipsum dolor sit amet',
			'site'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2010-03-24 19:51:05',
			'modified'  => '2010-03-24 19:51:05'
		));
		$this->assertEqual($results, $expected);
	}
}
?>